package com.sub.thread;

/**
 * @ClassName ThreadDemo2
 * @Description: TODO
 * @Author Submerge.
 * @Since 2024/1/2 11:30
 * @Version 1.0
 */
public class ThreadDemo2 {

    public static void main(String[] args) {


        SellTicketThread s = new SellTicketThread();
        Thread t1 = new Thread(s,"窗口A");
        Thread t2 = new Thread(s,"窗口B");
        Thread t3 = new Thread(s,"窗口C");
        t1.start();
        t2.start();
        t3.start();
    }
}
